package com.style_transfer.service.impl;

import com.style_transfer.dao.UImageDao;
import com.style_transfer.model.U_image;
import com.style_transfer.service.UImageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UImageServiceImpl implements UImageService {

    @Autowired
    UImageDao uImageDao;

    @Override
    public void setImage(U_image image) {
        uImageDao.setImage(image.getUsername(),image.getUrl());
    }

    @Override
    public U_image getImage(String username) {
        return uImageDao.getImage(username);
    }
}
